Skip to content

style: removed barrel files#45

Merged
GauBen merged 2 commits intomainfrom
refactor/removed-barrels
Feb 6, 2025
Merged

style: removed barrel files#45
GauBen merged 2 commits intomainfrom
refactor/removed-barrels

Conversation

@GauBen
Copy link
Copy Markdown
Member

@GauBen GauBen commented Feb 6, 2025

Description

Pure code quality change: removed all export * from somewhere statements. A file only containing this kind of statement is named a barrel file.

Rationale: it's not a good practice.[1][2] (it impacts performance and impairs tools)

Instead, we have a single entry point for our library, with an explicit list of exports; we now fully control the exposed API.

Tests

The following are included in this PR

  • Unit Tests (Most changes should have unit tests)
  • Integration Tests

Checklist

I have considered the following implications of my change:

  • Security (in particular for changes to authentication, authorization, data fetching, ...)
  • Performance
  • Migration
  • Code maintainability

Documentation

  • Inline documentation
  • Internal Documentation (wiki)
  • User-facing Documentation

@GauBen GauBen requested a review from a team as a code owner February 6, 2025 10:04
Copy link
Copy Markdown
Contributor

@jkevan jkevan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup !

@baptistegrimaud baptistegrimaud force-pushed the refactor/removed-barrels branch from 80f0c8e to 459a0b4 Compare February 6, 2025 10:29
@GauBen GauBen enabled auto-merge (squash) February 6, 2025 10:48
@GauBen GauBen merged commit 056f1eb into main Feb 6, 2025
@GauBen GauBen deleted the refactor/removed-barrels branch February 6, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants